﻿<%@ Page Language="C#" Title="城市排名" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
    CodeBehind="RankOfCity.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportArea.RankOfCity" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="../../Common/MaxforMonth.ascx" TagName="MaxforMonth" TagPrefix="uc2" %>
<%@ Register Src="../../Common/AreaControls.ascx" TagName="AreaControls" TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">

        //add by 曹鹏 2011年4月27日11:10:19 隐藏菜单项

        //        var frameSet2 = top.document.getElementById("mainFrame");
        //        frameSet2.cols = "0,0,*";
        function disTime(a) {
            document.getElementById("ctl00_ContentPlaceHolder1_hidTime").value = a;
        }
        function Load() {
            if (document.getElementById("ctl00_ContentPlaceHolder1_hidTime").value == "" || document.getElementById("ctl00_ContentPlaceHolder1_hidTime").value == "rdoTime1") {
                document.getElementById("rdoTime1").checked = true;
            } else {
                document.getElementById("rdoTime2").checked = true;
            }
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("县区排名")%>'><a href="ProcureArea.aspx">
                县区排名</a></li>
            <li class="active"><a href="javascript:void(0);">城市排名</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("医院排名")%>'><a href="../ProcureHospitalMax.aspx">
                医院排名</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("配送排名")%>'><a href="../ProcureCompanyPS.aspx">
                配送排名</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("药品排名")%>'><a href="../ProcureMax.aspx">
                药品排名</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("医院采购类型所占比例")%>'><a href="../SortSourceRate.aspx">
                医院采购类型所占比例</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("县区采购类型所占比例")%>'><a href="../SortSourceRateOfArea.aspx">
                县区采购类型所占比例</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("城市采购类型所占比例")%>'><a href="../SortSourceRateOfCity.aspx">
                城市采购类型所占比例</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("采购单次数")%>'><a href="../SortSourceRateCount.aspx">
                采购单次数</a></li>
        </ul>
    </div>
    <div id="tabcontent2">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                采购类型：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="dropMort" runat="server" Width="120px" Height="19px">
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="0">日常采购</asp:ListItem>
                                    <asp:ListItem Value="1">临时采购</asp:ListItem>
                                    <asp:ListItem Value="2">应急采购</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                统计日期：
                            </td>
                            <td align="left">
                                <uc2:MaxforMonth ID="MaxforMonth1" runat="server" />
                                <asp:HiddenField ID="hidTime" runat="server" />
                            </td>
                            <td align="right">
                                排名方式：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlorderby" runat="server" Height="19px">
                                    <asp:ListItem Value="PurchaseAmount">采购金额</asp:ListItem>
                                    <asp:ListItem Value="DistributeAmount">配送金额</asp:ListItem>
                                    <asp:ListItem Value="WareHouseAmount">入库金额</asp:ListItem>
                                    <asp:ListItem Value="DistributeRate">配送率</asp:ListItem>
                                    <asp:ListItem Value="WareHouseRate">入库率</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="dropOrder" runat="server" Height="19px">
                                    <asp:ListItem Value="desc">降序</asp:ListItem>
                                    <asp:ListItem Value="asc">升序</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                            </td>
                            <td align="left">
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="130px">
                    <asp:Button ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn"
                        SkinID="search" ToolTip="点击查询符合条件的数据" Height="19px" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProcureCatalog" runat="server" CssClass="mainlist" AutoGenerateColumns="False"
        OnRowDataBound="gvwProcureCatalog_RowDataBound" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:BoundField DataField="Areaname" HeaderText="地区名称" ReadOnly="true" />
            <asp:BoundField DataField="addDataColumn" HeaderText="采购类型" ReadOnly="true" />
            <asp:BoundField DataField="PurchaseAmountTotal" HeaderText="采购金额" ReadOnly="true" />
            <asp:BoundField DataField="DistributeAmountTotal" HeaderText="配送金额" />
            <asp:BoundField DataField="addDistributeRate" HeaderText="配送率" />
            <asp:BoundField DataField="WarehouseAmountTotal" HeaderText="入库金额" />
            <asp:BoundField DataField="addWareHouseRate" HeaderText="入库率" />
            <asp:BoundField DataField="pm" HeaderText="本月排名" ReadOnly="true" />
            <asp:BoundField DataField="addColumnOfRank" HeaderText="上月排名" ReadOnly="true" />
            <asp:TemplateField HeaderText="名次变化">
                <ItemTemplate>
                    <img src='<%# HZ.Supervise.Web.Function.GetImageurl( Convert.ToInt32(Eval("pms").ToString()==""?Int32.MaxValue.ToString():Eval("pms").ToString())-Convert.ToInt32(Eval("pm").ToString())) %>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div>
        <span style="float: left; width: 30%">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span><span
                style="float: right; width: 70%"><webdiyer:AspNetPager ID="AspNetPager1" runat="server"
                    OnPageChanged="AspNetPager1_PageChanged" AlwaysShow="True" ShowPageSizeBox="True">
                </webdiyer:AspNetPager>
            </span>
    </div>
    <div class="listip">
        <ul>
            <li>说明:1.<span>此数据是静态数据，每24小时统计一次。</span> </li>
            <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.<span>配送率计算方式为：配送金额/采购金额；入库率计算方式为：入库金额/采购金额。</span>
            </li>
        </ul>
    </div>
</asp:Content>
